

var socket = io('http://localhost:7000');
var log = console.log;
socket.on('connect', function(){
    log("connect")
});
socket.on("message",function (e) {
    log("message")
    log(e)
    if(e === "reload"){
        $('.layadmin-iframe').attr("src",$('.layadmin-iframe').attr("src"));
    }
})
socket.on('event', function(data){
    log("event");
});
socket.on('disconnect', function(){
    log("dusconnect");
});